package com.fnzn.entranceGuard.constant;

/**
 * @author wf_sxf@163.com
 * @date 2018-06-25 14:52
 */
public class GuardConstant {

    /**
     * 二维码状态
     */
    public static final String  QR_SUCCESS ="200";//开门成功
    public static final String  QR_FAIL ="403";//开门失败，无权限
    public static final String  QR_INVALID ="300";//二维码过期
    public static final String  QR_VALID ="100";//未使用

    /**
     * 发送类型
     */
     //读头
     public final static byte TYPE_SCAN=0x01;
     //时钟
     public final static byte TYPE_CLOCK=0x02;
     //社区
     public final static byte TYPE_COM=0x03;
     //新增IC
     public final static byte TYPE_ADD=0x04;
     //删除
     public final static byte TYPE_DEL=0x05;
     //初始化设备
     public final static byte TYPE_INIT=0x07;

    /**
     * 同步状态
     */
    public final static String SYNC = "0";          //同步中
    public final static String SYNC_SUCCESS = "1";  //同步成功
    public final static String SYNC_DEFEAT = "2";   //同步失败
    public final static String DELETE = "3";   //删除中
    public final static String DEAD_STATUS = "4";   //欠费已停用

    public final static String DEV_LOSE = "1";//设备同步失败
    public final static String DEV_SUCESS="0";//同步成功

}
